package cn.amaake.common;

import java.util.List;

public class AmaakePage {


    /*
    * "pageNum":1,//当前页
      "pageSize":10,//每页数量
      "pages":1,//总页码
      "total":3//总数量
    * */
    private static final long serialVersionUID = -7102129155309986923L;
    private List list;
    private int pageNum;
    private int pageSize;
    private int pages;
    private int total;

    public AmaakePage(com.jfinal.plugin.activerecord.Page page) {
        this.list = page.getList();
        this.pageNum = page.getPageNumber();
        this.pageSize = page.getPageSize();
        this.pages = page.getTotalPage();
        this.total = page.getTotalRow();
    }

    public AmaakePage() {
    }

    public List getList() {
        return this.list;
    }

    public void setList(List list) {
        this.list = list;
    }

    public int getPageNum() {
        return pageNum;
    }

    public void setPageNum(int pageNum) {
        this.pageNum = pageNum;
    }

    public int getPageSize() {
        return pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }

    public int getPages() {
        return pages;
    }

    public void setPages(int pages) {
        this.pages = pages;
    }

    public int getTotal() {
        return total;
    }

    public void setTotal(int total) {
        this.total = total;
    }
}
